Return of boolean literal statements wrapped into If-Then-Else
ones should be simplified.
Noncompliant code example
Function MyFunction
If condition Then
MyFunction = True
Else
MyFunction = False
End If
End Function
Compliant solution
Function MyFunction
MyFunction = condition
End Function